﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.Model.CSP;

namespace CSP.Dao.IObjectDaos.CSP
{
    public interface IContactWayDao : ICSPDao<ContactWay>
    {
        ICollection<ContactWay> FindByUser(string userName);

        /// <summary>
        /// 根据多个用户名获取索取联系方式
        /// </summary>
        /// <param name="userNames"></param>
        /// <returns></returns>
        ICollection<ContactWay> FindByUsers(List<string> userNames);

        ContactWay GetDataByIdAndUser(int Id, string userName);

        ContactWay DeleteByIdAndUser(int id, string userName);


        /// <summary>
        /// 根据用户获取联系方式数量
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        int GetCountByUser(string userName);

    }
}
